package com.sc.commons.gateway;

import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import javax.annotation.PostConstruct;
import java.util.ArrayList;
import java.util.List;

/**
 * @author
 */
@Component
//@ConfigurationProperties
public class AuthorizationConfig {
    private List<String> excludeUrls = new ArrayList<>();

    @PostConstruct
    public void init(){
        excludeUrls.add("/hello");
        excludeUrls.add("/world");
    }

    public List<String> getExcludeUrls() {
        return excludeUrls;
    }
}
